package com.fduss.artStore.entity;

/**
 * @Author duocai wu
 * @Date 2017/6/24
 * @Time 15:51
 */
public class TypesMatt {

    private int mattId;
    private String title;
    private String colorCode;

    public int getMattId() {
        return mattId;
    }

    public void setMattId(int mattId) {
        this.mattId = mattId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getColorCode() {
        return colorCode;
    }

    public void setColorCode(String colorCode) {
        this.colorCode = colorCode;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TypesMatt typesmatt = (TypesMatt) o;

        if (mattId != typesmatt.mattId) return false;
        if (title != null ? !title.equals(typesmatt.title) : typesmatt.title != null) return false;
        if (colorCode != null ? !colorCode.equals(typesmatt.colorCode) : typesmatt.colorCode != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = mattId;
        result = 31 * result + (title != null ? title.hashCode() : 0);
        result = 31 * result + (colorCode != null ? colorCode.hashCode() : 0);
        return result;
    }
}
